package com.luxf.base.domainevent.configuration;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.util.StringUtils;

@Data
public class DomainEventEnvironment {

    @Value("${rocketmq.name-server:}")
    private String rocketMQNameServer;

    public boolean isRocketMQEnabled(){
        return StringUtils.hasText(rocketMQNameServer);
    }
}
